<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:ui="http://java.sun.com/jsf/facelets">
	  
<ui:composition template="/WEB-INF/templates/template_interno.xhtml">
	<ui:define name="titulo">Cadastro de Usuários</ui:define>
	<ui:define name="corpo">
		<h1>Cadasto de Usuários</h1>
		<h:form>
			<h:messages />
			<h:panelGrid columns="2">
				<h:outputLabel value="Nome" for="nome" />
				<h:inputText id="nome" label="Nome" value="#{usuarioBean.usuario.nome}" required="true"/>
				<h:outputLabel value="Login" for="login" />
				<h:inputText id="login" label="Login" value="#{usuarioBean.usuario.login}" required="true"/>
				<h:outputLabel value="Senha" for="senha" />
				<h:inputSecret id="senha" label="Senha" value="#{usuarioBean.usuario.senha}" required="true"/>
				<h:outputLabel value="Confirmar Senha" for="confirmarsenha" />
				<h:inputSecret id="confirmarsenha" label="Confirmar Senha" value="#{usuarioBean.confirmaSenha}" required="true"/>
				<h:outputText/>
				<h:commandButton action="#{usuarioBean.doSalvar}" value="Salvar" />
			</h:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>
</html>